﻿using Newtonsoft.Json;

namespace QQMapSDK.Models
{
    public class Poi
    {
        #region Model
        [JsonProperty("id")]
        public string? Id { get; set; }

        [JsonProperty("title")]
        public string? Title { get; set; }

        [JsonProperty("address")]
        public string? Address { get; set; }

        [JsonProperty("category")]
        public string? Category { get; set; }

        [JsonProperty("location")]
        public Location Location { get; set; }

        [JsonProperty("ad_info")]
        public AdInfoPoi? AdInfo { get; set; }

        [JsonProperty("_distance")]
        public double Distance { get; set; }

        [JsonProperty("_dir_desc")]
        public string? DirDesc { get; set; }
        #endregion
    }

    public class AdInfoPoi
    {
        #region Model
        [JsonProperty("adcode")]
        public string? AdCode { get; set; }

        [JsonProperty("province")]
        public string? Province { get; set; }

        [JsonProperty("city")]
        public string? City { get; set; }

        [JsonProperty("district")]
        public string? District { get; set; }
        #endregion
    }
}